Categories

Free Categories(7)
Category(1)

A category, \(\mathcal{C}\)

  • Need to specify a collection of objects, \(Ob(\mathcal{C})\)

  • For every two objects c and d, one specifies a set \(\mathcal{C}(c,d)\) called morphisms from c to d

    • This set is called the hom-set and morphism is a shorthand for homomorphism

  • For every object c one specifies a morphism \(id_c \in \mathcal{C}(c,c)\) called the identity morphism

  • For every pair of morphisms \(c \xrightarrow{f} d\) and \(d \xrightarrow{g} e\), one specifies a morphism \(c \xrightarrow{f;g}e\) called the composite of f and g

  • Furthermore, these must satisfy two conditions:

    1. unitality: composing with identities does not change anything

    2. associativity: \((f;g);h = f;(g;h)\)

Linked by

Free category on a graph(1)

The category \(\mathbf{Free}(G)\), given a graph \(G=(V,A,s,t)\)

  • A category whose objects are vertices and morphisms are paths.

  • The identity morphism is the trivial path at any vertex.

  • Composition is path concatenation (this obeys unitality and associativity)

Linked by

Naturals as category(1)
  • The natural numbers as a free category: \(\boxed{\overset{\bullet}{z}\circlearrowleft s}\)

  • There are infinitely many paths, in bijection with the natural numbers.

  • This is a category with one object, also called a monoid.

  • The composition operation corresponds to the addition operation.

  • Unitality and associativity give us the usual constraints on a monoid.

Linked by

Exercise 3-10(2)

The free category \(3 := \mathbf{Free}(\boxed{\overset{v_1}\bullet \xrightarrow{f_1}\overset{v_2}{\bullet}\xrightarrow{f_2}\overset{v_3}{\bullet}})\) has three objects and six morphisms. Give the morphisms names and write out the composition operation in a 6x6 matrix. Which are the identities?

Solution(1)

Identities are 1,2,3

\(\circ\) 1 2 3 f1 f2 f12
1 1 f1 f12
2 2 f2
3 3
f1 f1 f12
f2 f2
f12 f12
Exercise 3-12(2)
  1. What is the category 1?

  2. What is the category 0?

  3. What is the formula for the number of morphisms in n?

Solution(1)
  1. It has one object and one (identity) morphism.

  2. It has zero objects and zero morphisms.

  3. \(1+2+...+n\), i.e. \(\frac{n(n+1)}{2}\)

Categories via path equations(5)

We can add constraints to a free category which states that two paths are equal

Exercise 3-17(2)

Write down all the morphisms in the free category presented by the following diagram:

Solution(1)

A,B,C,D,f,h,g,i,j

Exercise 3-19(2)

What are the morphisms in the following category: \(\boxed{\overset{\bullet}{z}\circlearrowleft s\ \ \boxed{s;s;s;s = s;s}}\)

Solution(1)

z,s,ss,sss

Preorders and free categories - two ends of a spectrum(5)
Exercise 3-21(2)

What equations are needed to add to the following graphs in order to present the associated preorders?

Solution(1)
  1. f=g

  2. f;f=f

  3. f;h=g;i

  4. none are needed

Exercise 3-22(2)

What is the preorder reflection of the category \(\mathbb{N}\) from Example 3.13

Solution(1)

The trivial preorder of one object.

Important categories in mathematics(3)
The category Set(1)

The category of sets, denoted Set

  • Objects are the collection of all sets.

  • Morphisms are set-functions

  • Composition is function composition (satsifies associativity), identities are the identity functions (satisfies identity constraints).

  • Closely related is the subcategory FinSet of finite sets with morphisms being set-functions.

Opposite category(1)

Any category \(\mathcal{C}\) induces another category, \(\mathcal{C}^{op}\) defined as the same objects but all arrows reversed.

Isomorphisms in a category(10)

Isomorphisms formalize the notion of ‘interchangibility’, e.g. in a preorder the fact that \(a \cong b\) tells us that it doesn’t matter whether someone tells us \(c \leq a\) versus \(c \leq b\).

Isomorphism(1)

An isomorphism in a category

  • A morphism \(A \xrightarrow{f}B\) such that there exists a morphism \(B \xrightarrow{g}A\) satisfying \(f;g=id_A\) and \(g;f=id_B\)

  • We call f and g inverses and can write \(g=f^{-1}\)

  • We say A,B are isomorphic objects in this case.

Linked by

Set isomorphism(1)

The set \(\{a,b,c\}\) and \(\bar{3}\) are isomorphic (we have \(3!\) bijections to choose from). The isomorphisms in Set are the bijections.

Retraction(1)
  • It is possible for \(f;g=id\) but \(g;f \ne id\)

  • This is called a retraction rather than an isomorphism.

Exercise 3-31(2)

Show that the identity arrow on any given object is an isomorphism.

Solution(1)

The inverse to \(id_c\) exists; it is itself: \(id_c ; id_c = id_c\) (from the identity property)

Exercise 3-32(2)

A monoid in which every morphism is an isomorphism is known as a group

  1. Is the natural numbers monoid a group?

  2. Is the monoid with the added constraint \(s;s=z\) a group?

Solution(1)
  1. No, \(s\) has no inverse (no natural number can be added to 1 to get 0)

  2. Yes, this is the cyclic group with two elements.

Exercise 3-33(2)

Someone says that the only isomorphisms in \(\mathbf{Free}(G)\) for some graph \(G\) are the identity morphisms. Are they correct?

Solution(1)

They are correct. If we could compose \(f;g\) to get a morphisms from c to c, a free category would pick a new morphism rather than re-use the identity (which could be forced with a constraint).